package com.item.service.item;

import lombok.AllArgsConstructor;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class captchaService {
    private RedisTemplate<String,Object> redisTemplate;
    public Boolean comfirmcaptcha(String captcha){
        String captcha2= (String) redisTemplate.opsForValue().get("captcha");
        if(captcha.equals(captcha2)){
return true;
        }else {return false;}

    }
}
